﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _002编程题
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int a = Convert.ToInt32(Console.ReadLine());
            int b = Convert.ToInt32(Console.ReadLine());
            int c = Convert.ToInt32(Console.ReadLine());

            int max = a;
            int num = 0;
            if(b > max)
            {
                max = b;
            }
            if (c > max)
            {
                max = c;
            }
            num = max * max;
            Console.WriteLine(num);
        }
    }
}
